﻿using PowerHub.MES.DTO.BasicData.DTO;
using PowerHub.MES.DTO.BasicData.QueryDto;
using PowerHub.MES.Entities.BasicData;
using PowerHub.MES.ReturnEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.IServices.IBasic
{
    /// <summary>
    /// 角色接口层
    /// </summary>
    public interface IBasicData_RoleinfoServices
    {
        /// <summary>
        /// 获取角色列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationPageResult<List<BasicData_Roleinfo>>> GetBasicData_RoleinfoPageListAsync(QueryBasicData_RoleinfoDTO query);

        /// <summary>
        /// 根据角色ID获取菜单列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        /// <exception cref="NotImplementedException"></exception>
        public  Task<OperationResult<object>> GetBasicData_Roleinfo_MenuInfoByIdTreeListAsync(QueryBasicData_Roleinfo_MenuInfoDTO query);

        /// <summary>
        /// 根据用户ID获取角色菜单列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<List<BasicData_MenuInfoDTOs>>> GetBasicData_Roleinfo_MenuInfoListAsync();


        /// <summary>
        /// 添加角色
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<object>> CreateBasicData_RoleinfoAsync(BasicData_RoleinfoDTO query);

        /// <summary>
        /// 批量删除角色
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<object>> BatchDeletionBasicData_RoleinfoAsync(List<string>? ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<object>> UpdateBasicData_RoleinfoAsync(BasicData_RoleinfoDTO query);
    }
}
